package interceptors

import (
	"administrator/app/mapper"
	"fmt"
	"gitee.com/aurora-engine/web"
)

var rbac = new(Rbac)

type Rbac struct {
	*mapper.RbacManageMapper
}

func GetRbac() web.Interceptor {
	return rbac
}

func (rbac *Rbac) Before(ctx web.Context, handle any) (bool, error) {
	fmt.Println()
	return true, nil
}

func (rbac *Rbac) Complete(ctx web.Context, handler any) error {
	return nil
}

func (rbac *Rbac) After(ctx web.Context, handler any) error {
	return nil
}
